<div class="header">
    <back-Btn></back-Btn>
    进项发票
</div>
<div class="container finance task-review">
    <div class="list f_sk">
        <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
            date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
        <div class="section">
            <div class="list-item flex">
                <div class="w40 c9">项目编号</div>
                <div class="w60">{{TaskReview.result.projectNo}}</div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">项目名称</div>
                <div class="w60" relative-module="Xm_ProjectStore" module-no="{{ TaskReview.result.projectNo }}">
                    {{ TaskReview.result.projectName }}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">合同编号</div>
                <div class="w60">
                    {{TaskReview.result.contractNo}}</div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">合同名称</div>
                <div class="w60" relative-module="{{TaskReview.result.contractType}}"
                    module-no="{{TaskReview.result.contractNo}}">
                    {{TaskReview.result.contractName}}
                </div>
            </div>

            <div class="list-item flex">
                <div class="w40 c9">开票单位 </div>
                <div class="w60">
                    {{TaskReview.result.makeInvoiceCompany}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票类型 </div>
                <div class="w60">
                    {{TaskReview.result.invoiceType}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">电子发票</div>
                <div class="w60">
                    {{TaskReview.result.electronic=="0"?"否":"是"}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票税率 </div>
                <div class="w60">
                    {{TaskReview.result.taxRate}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">结算类型 </div>
                <div class="w60" ng-switch="TaskReview.result.settlementType">
                    <div ng-switch-when="1">成本 </div>
                    <div ng-switch-when="2">冲红</div>
                    <div ng-switch-when="3">作废</div>
                    <div ng-switch-when="4">追加</div>
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票数量 </div>
                <div class="w60">
                    {{TaskReview.result.invoiceCount}}
                </div>
            </div>
            <div class="list-item flex" ng-show="TaskReview.result.goodsName">
                <div class="w40 c9">货物或服务名 </div>
                <div class="w60">
                    {{TaskReview.result.goodsName}}
                </div>
            </div>
            <div class="list-item flex" ng-show="TaskReview.result.appendTargetNo">
                <div class="w40 c9">需追加的发票 </div>
                <div class="w60" relative-module="Xm_InputInvoice" module-no="{{TaskReview.result.appendTargetNo}}">
                    {{TaskReview.result.appendTargetNo}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">价税总计 </div>
                <div class="w60">
                    {{TaskReview.result.totalAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">价税总计(大写)</div>
                <div class="w60">
                    {{TaskReview.result.amountInWorld}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">税额总计 </div>
                <div class="w60">
                    {{TaskReview.result.taxAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">已付款 </div>
                <div class="w60">
                    {{TaskReview.result.paidAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">已抵扣 </div>
                <div class="w60">
                    {{TaskReview.result.decuctAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">是否签收 </div>
                <div class="w60">
                    {{TaskReview.result.delivered==0?"未签收":"已签收"}}
                </div>
            </div>
            <div class="list-item flex" ng-show="TaskReview.result.remark">
                <div class="w40 c9">备注</div>
                <div class="w60">{{TaskReview.result.remark}}</div>
            </div>
            <div class="list table-list"
                ng-show="TaskReview.result.invoiceRevs&&TaskReview.result.invoiceRevs.length>0">
                <div class="info-title">已关联的进项发票记录</div>
                <div class="table-item" ng-repeat="item in TaskReview.result.invoiceRevs">
                    <div class="list-item">
                        <div class="item-label">编号 </div>
                        <div class="flow-content" relative-module="Xm_InputInvoice" module-no="{{ item.invoiceNo }}">
                            {{ item.invoiceNo }}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">发票类别 </div>
                        <div class="flow-content">{{ item.invoiceType }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">税率 </div>
                        <div class="flow-content">{{ item.taxRate }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">货物或服务名 </div>
                        <div class="flow-content">{{ item.goodsName }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">开票单位 </div>
                        <div class="flow-content">{{ item.makeInvoiceCompany }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">价税总计 </div>
                        <div class="flow-content">{{ item.totalAmount }}</div>
                    </div>
                </div>
            </div>
            <div class="list table-list" ng-show="TaskReview.result.relevances&&TaskReview.result.relevances.length>0">
                <div class="info-title">已关联的付款明细记录</div>
                <div class="table-item" ng-repeat="item in TaskReview.result.relevances">
                    <div class="list-item">
                        <div class="item-label">付款编号 </div>
                        <div class="flow-content" relative-module="Xm_ProjectPayment" module-no="{{ item.targetNo }}">
                            {{ item.targetNo }}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">付款金额 </div>
                        <div class="flow-content">{{ item.targetAmount }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">收款人 </div>
                        <div class="flow-content">{{ item.targetPerson }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">本次开票金额 </div>
                        <div class="flow-content">{{ item.coverAmount|NBFmt }}</div>
                    </div>
                </div>
            </div>
            <div class="list table-list" ng-show="TaskReview.result.details&&TaskReview.result.details.length>0">
                <div class="info-title">发票明细 </div>
                <div class="table-item" ng-repeat="item in TaskReview.result.details">
                    <div class="list-item">
                        <div class="item-label">发票编号 </div>
                        <div class="flow-content">{{ item.invoiceNo }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">开票日期 </div>
                        <div class="flow-content">{{ item.openDate|dateFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">发票金额 </div>
                        <div class="flow-content">{{ item.invoiceAmount |NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">发票税额 </div>
                        <div class="flow-content">{{ item.invoiceTaxAmount|NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">价税合计 </div>
                        <div class="flow-content">{{ item.invoiceTotalAmount| NBFmt}}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">签收状态 </div>
                        <div class="flow-content" ng-switch="item.signIn">
                            <span ng-switch-when="1">已签收 </span>
                            <span ng-switch-when="0">未签收 </span>
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">报税状态 </div>
                        <div class="flow-content" ng-switch="item.taxDeclare">
                            <span ng-switch-when="1">已报税 </span>
                            <span ng-switch-when="0">未报税 </span>
                        </div>
                    </div>

                    <div class="list-item" ng-show="item.invoiceRemark">
                        <div class="item-label">备注</div>
                        <div class="flow-content">{{ item.invoiceRemark }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">状态 </div>
                        <div class="flow-content" ng-switch="item.status">
                            <span ng-switch-when="0">未生效 </span>
                            <span ng-switch-when="1">已生效 </span>
                            <span ng-switch-when="-2">已作废</span>
                            <span ng-switch-when="-3">已冲红</span>
                        </div>
                    </div>
                    <div class="file-upload" file-list file-data="item.invoiceAttachment" checked="true"></div>
                </div>
            </div>
            <!-- 自定义字段 -->
            <div checkuser-define field-map="TaskReview.result.customFields"></div>
            <!-- 附件 -->
            <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment"></div>
        </div>
        <div log-list taskid="process_id"></div>
    </div>
</div>